//
//  V2LeftMenuCell.m
//  V2EX
//
//  Created by 花菜ChrisCai on 2016/6/11.
//  Copyright © 2016年 Chris. All rights reserved.
//

#import "V2LeftMenuCell.h"
#import "V2LeftMenuModel.h"
@interface V2LeftMenuCell ()

@property (weak, nonatomic) IBOutlet UIButton *tagButton;

@end
@implementation V2LeftMenuCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    self.tagButton.selected = selected;
}


- (void)setModel:(V2LeftMenuModel *)model
{
    _model = model; 
    [self.tagButton setTitle:model.name forState:UIControlStateNormal];
    [self.tagButton setImage:[UIImage imageNamed:model.icon] forState:UIControlStateNormal];
    [self.tagButton setImage:[UIImage imageNamed:model.heightImage] forState:UIControlStateSelected];
}
@end
